WpAssetCleanUp\Admin\PluginAnnouncements D

Total Complexity 133
Dependencies 9
Dependents 2
Total lines 1,155
Lines of code 685
Logical lines of code 248
Comment lines 269
Methods 23
Properties 11

Methods 23

Method Rating Maintainability Complexity Lines of code
displayOneAnnouncement()
D
32 31 96
displayJsFooter()
B
33 4 250
isCurrentTimeBetweenAnyEnabledAnnouncementTime()
A
51 13 24
updateAnnouncementsViaActionType()
A
49 11 30
_showOnCurrentAdminPage()
A
55 8 20
snoozeNextAnnouncementsAfterCurrentOne()
S
58 8 14
adminHead()
S
46 2 75
_comparePriority()
S
64 7 8
isSiteTimezoneUtc()
S
62 5 11
getAnnouncementsFromTheFeed()
S
53 4 24
init()
S
54 4 20
feedUnixToWordPressUnix()
S
58 4 14
handleFallbackActions()
S
59 4 14
updateAnnouncementState()
S
63 4 9
sanitizeAnnouncements()
S
63 4 10
isShowAnnouncementsEnabled()
S
66 3 8
renderAnnouncementsContainer()
S
65 3 10
handleCacheClearingOnRequest()
S
66 3 8
handleSettingsClearingOnRequest()
S
64 3 9
handleAjaxActionRequest()
S
68 3 6
fillAnnouncementContainerAjax()
S
62 2 11
updateAnnouncementsSettings()
S
69 2 6
reloadAnnouncementsSettingsTab()
S
66 1 8